package com.casic.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// name：调⽤的服务名称，和服务提供者yml⽂件中spring.application.name保持⼀致
@FeignClient(name="rare-earth-service-resume",fallback = ResumeFallback.class)
public interface ResumeFeignClient {

    //Feign 作用拼接接口
    @GetMapping("resume/openstate/{userId}")
    public Integer findDefaultResumeState(@PathVariable("userId") Long userId);
}
